/* 页面设置 */
html {
  font-size: 12.8px;
}

.report-page {
  background-color: rgba(243, 243, 243, 1);
  position: relative;
  width: 38.4rem; /* 保持 rem 单位，自动按比例缩小 */
  overflow-x: hidden;
  padding-bottom: 1.15rem;
}

/* 报告标题 */
.report-title-container {
  width: 17.28rem;
  height: 0.64rem;
  margin: 2.507rem auto 0 auto;
  justify-content: center;
}

.report-title {
  height: 0.64rem;
  overflow-wrap: break-word;
  color: rgba(0, 0, 0, 1);
  font-size: 0.64rem;
  font-family: "PingFang SC-Semibold", sans-serif;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  line-height: 0.64rem;
}

/* 通用卡片样式 */
.card-container {
  width: 28.267rem;
  margin: 0.267rem auto 0 auto;
}

.card-container:first-of-type {
  margin-top: 0.427rem;
}

.card {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 8px;
  width: 100%;
  padding: 0.534rem;
}

.card__title {
  overflow-wrap: break-word;
  color: rgba(0, 0, 0, 1);
  font-size: 0.426rem;
  font-family: "PingFang SC-Semibold", sans-serif;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  line-height: 0.427rem;
  margin-bottom: 0.534rem;
}

/* 信息卡片 */
.info-card__item {
  width: 27.2rem;
  height: 0.374rem;
  margin-top: 0.854rem;
}

.info-card__item:first-of-type {
  margin-top: 0;
}

.info-card__item:nth-of-type(2) {
  margin-top: 0.72rem;
}

.info-card__item:nth-of-type(3) {
  margin-top: 0.667rem;
}

.info-card__label {
  overflow-wrap: break-word;
  color: rgba(102, 102, 102, 1);
  font-size: 0.373rem;
  font-family: "PingFang SC-Medium", sans-serif;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  line-height: 0.374rem;
  flex-shrink: 0;
}

.info-card__value {
  overflow-wrap: break-word;
  color: rgba(51, 51, 51, 1);
  font-size: 0.373rem;
  font-family: "PingFang SC-Regular", sans-serif;
  text-align: left;
  white-space: nowrap;
  line-height: 0.374rem;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  margin-left: 0.2rem;
}

.info-card__item--relative {
  position: relative;
}

.info-card__label--absolute {
  position: absolute;
  left: 0;
  top: 0;
}

.info-card__value--offset {
  margin-left: 2.187rem;
  text-align: left;
}

/* 摘要卡片 */
.summary-card {
  align-items: flex-start;
}

.summary-card__stats {
  width: 15.814rem;
  height: 1.547rem;
  margin: 0.4rem 0 0.4rem 1.0rem;
}

.summary-card__stat-item {
  text-align: center;
}

.summary-card__stat-value {
  height: 0.8rem;
  overflow-wrap: break-word;
  color: rgba(6, 173, 45, 1);
  font-size: 0.8rem;
  font-family: "Source Han Sans CN-Bold", sans-serif;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  line-height: 0.8rem;
}

.summary-card__stat-label {
  height: 0.32rem;
  overflow-wrap: break-word;
  color: rgba(102, 102, 102, 1);
  font-size: 0.32rem;
  font-family: "PingFang SC-Semibold", sans-serif;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  line-height: 0.32rem;
  margin-top: 0.427rem;
}

.summary-card__stat-item:first-child .summary-card__stat-label {
  width: 1.92rem;
}

.summary-card__stat-item:last-child .summary-card__stat-label {
  width: 2.88rem;
}

/* 统计卡片 */
.stats-card {
  padding-bottom: 0.667rem;
}

.stats-card__tabs {
  width: 17.894rem;
  height: 0.907rem;
  margin-top: 0.32rem;
  margin-bottom: 0.267rem;
}

.stats-card__tab {
  border-radius: 4px;
  height: 0.907rem;
  width: 3.894rem;
  padding: 0 0.534rem;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: rgba(255, 255, 255, 1);
}

.stats-card__tab--important {
  background-image: url('./img/tab-important.png');
}

.stats-card__tab--general {
  background-image: url('./img/tab-general.png');
}

.stats-card__tab-text {
  height: 0.374rem;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 1);
  font-size: 0.373rem;
  font-family: "Source Han Sans CN-Medium", sans-serif;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  line-height: 0.374rem;
}

.stats-card__headers {
  width: 27.2rem;
  height: 0.907rem;
  margin-bottom: 0.134rem;
}

.stats-card__header-group {
  background-color: rgba(222, 225, 242, 1);
  border-radius: 4px;
  width: 13.2rem;
  height: 0.907rem;
  align-items: center;
}

.stats-card__header-label {
  height: 0.374rem;
  overflow-wrap: break-word;
  color: rgba(0, 0, 0, 1);
  font-size: 0.373rem;
  font-family: "Source Han Sans CN-Medium", sans-serif;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  line-height: 0.374rem;
}

.stats-card__header-label--category {
  text-align: left;
  margin-right: auto;
}

.stats-card__header-label--value {
  text-align: right;
  min-width: 2rem;
}

.stats-card__row {
  width: 27.2rem;
  height: 0.907rem;
  margin-top: 0.134rem;
}

.stats-card__row:first-child {
  margin-top: 0;
}

.stats-card__cell-group {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 4px;
  width: 13.2rem;
  height: 0.907rem;
  border: 1px solid rgba(243, 243, 243, 1);
  align-items: center;
}

.stats-card__cell {
  overflow-wrap: break-word;
  color: rgba(51, 51, 51, 1);
  font-size: 0.373rem;
  font-family: "Source Han Sans CN-Medium", sans-serif;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  line-height: 0.374rem;
}

.stats-card__cell--label {
  background-color: rgba(246, 248, 247, 1);
  border-radius: 3px;
  height: 0.8rem;
  width: 4.634rem;
  margin: 0.054rem 0 0.054rem 0.054rem;
  justify-content: center;
  padding-left: 0.267rem;
  flex-shrink: 0;
}

.stats-card__cell--content {
  width: auto;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-right: 0.5rem;
}

/* 来源分析卡片 */
.source-analysis-card__list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0.45rem 0.3rem;
}

.source-analysis-card__item {
  height: 0.374rem;
  margin-top: 0.534rem;
  align-items: center;
}

.source-analysis-card__item:first-child {
  margin-top: 0;
}

.source-analysis-card__item-marker {
  background-color: rgba(51, 51, 51, 1);
  border-radius: 50%;
  width: 0.16rem;
  height: 0.16rem;
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.source-analysis-card__item-text {
  height: 0.374rem;
  overflow-wrap: break-word;
  color: rgba(51, 51, 51, 1);
  font-size: 0.373rem;
  font-family: "PingFang SC-Medium", sans-serif;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  line-height: 0.374rem;
}

/* 结果卡片 */
.card-container--results {
  width: auto;
  margin-left: 5.067rem;
  margin-right: 5.067rem;
  display: flex;
  flex-wrap: wrap;
}

.results-card {
  padding-bottom: 0.48rem;
}

.results-card .card__title {
  margin-bottom: 0.64rem;
}

.result-item {
  margin-bottom: 0.534rem;
}

.result-item:last-child {
  margin-bottom: 0;
}

.result-item__header {
  background-color: rgba(112, 119, 159, 1);
  border-radius: 4px;
  width: 27.2rem;
  height: 0.907rem;
  align-items: center;
  padding: 0 0.267rem;
}

.result-item__header-title {
  height: 0.374rem;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 1);
  font-size: 0.4rem;
  font-family: "PingFang SC-Semibold", sans-serif;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  line-height: 0.374rem;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-item__header-ratio {
  height: 0.374rem;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 1);
  font-size: 0.4rem;
  font-family: "PingFang SC-Semibold", sans-serif;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  line-height: 0.374rem;
  flex-shrink: 0;
}

.result-item__details {
  background-color: rgba(255, 255, 255, 1);
  border-radius: 4px;
  width: 27.174rem;
  border: 1px solid rgba(243, 243, 243, 1);
  margin-top: 0.134rem;
}

.result-item__details-header {
  background-color: rgba(240, 241, 247, 1);
  height: 0.907rem;
  border-bottom: 1px solid rgba(243, 243, 243, 1);
  width: 100%;
  justify-content: center;
  padding-left: 0.534rem;
  align-items: center;
}

.result-item__details-title {
  width: auto;
  height: 0.374rem;
  overflow-wrap: break-word;
  color: rgba(51, 51, 51, 1);
  font-size: 0.4rem;
  font-family: "PingFang SC-Semibold", sans-serif;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  line-height: 0.374rem;
}

.result-item__text-content {
  width: 26.187rem;
  overflow-wrap: break-word;
  font-size: 0.373rem;
  font-family: "PingFang SC-Regular", sans-serif;
  text-align: left;
  line-height: 0.534rem;
  margin: 0.267rem auto 0.534rem auto;
  color: rgba(51, 51, 51, 1);
}

.result-item__text--highlight {
  color: rgba(210, 26, 9, 1);
}

.result-item__text--underline {
  text-decoration: underline;
}

/* 结果图例 */
.results-legend {
  list-style: none;
  padding: 0;
  width: 27.2rem;
  margin: 0.5rem auto 0 auto;
  justify-content: center;
  align-items: center;
  height: 0.84rem;
}

.results-legend__item {
  margin: 0 0.8rem;
  align-items: center;
  color: rgba(153, 153, 153, 1);
  font-size: 0.373rem;
  font-family: "Source Han Sans CN-Medium", sans-serif;
  font-weight: 500;
  white-space: nowrap;
  line-height: 0.374rem;
}

.results-legend__item:first-child,
.results-legend__item:last-child {
  margin: 0;
}

.results-legend__marker {
  width: 0.16rem;
  height: 0.32rem;
  margin-right: 0.16rem;
}

.results-legend__marker--normal {
  background-color: black;
}

.results-legend__marker--literal {
  background-color: orange;
}

.results-legend__marker--semantic {
  background-color: red;
}

/* 命中结果卡片中的片段样式 */
.result-item__text-content .hit-fragment {
  font-weight: bold;
}


/* --- 原文对比高亮样式 --- */
.highlight-content {
  font-weight: normal;
  font-size: 0.373rem;
  line-height: 0.64rem;
}

.highlight-content .duplicate {
  font-weight: bold;
  text-decoration: underline;
}

.highlight-content .literal {
  color: red;
  background-color: transparent;
}

.highlight-content .semantic {
  color: orange;
  background-color: transparent;
}